#ifndef STUDENT_H
#define STUDENT_H

#include <QtGui>

class Student : public QTreeWidgetItem
{
public:
	Student( int id, const QString& name, const QString& eMail = "", const QString& phone = "", 
		     const QString& address = "", int gradYear = 0, int program = 0, const QString& subDisipline = "" );

	~Student();

	inline int id() { return mId; }
	inline QString name() const { return mName; }
	inline QString eMail() const { return mEMail; }
	inline void setEMail( const QString& eMail ){ mEMail = eMail; }
	inline QString phone() const { return mPhone; }
	inline void setPhone( QString phone ){ mPhone = phone; }
	inline QString& address() { return mAddress; }
	inline int gradYear() { return mGradYear; }
	inline int program() { return mProgram; }
	inline QString subDisipline() const { return mSubDisipline; }
private:
	int mId;
	QString mName;
	QString mEMail;
	QString mPhone;
	QString mAddress;
	int mGradYear;
	int mProgram; // Reference to program
	QString mSubDisipline;
};

#endif